#!/bin/sh

find . -type f -name "*.pyc" | xargs rm -rf

[ -d data ] && rm -rf data/*
mkdir -p data/sessions

[ -d static/uploads ] && rm -rf static/uploads
mkdir -p static/uploads

chown -R lighttpd:lighttpd data
chown -R lighttpd:lighttpd static
